/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package project1;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.ImageIcon;
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;
import javax.swing.SwingUtilities;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author haihip
 */
public class ManagerSubjectView extends javax.swing.JPanel {

    /**
     * Creates new form ManagerSubject
     */
    SqlFunc sql = new SqlFunc();
    class ComboItem
{
    private String key;
    private String value;
    private String value1;
    public ComboItem(String key, String value, String value1)
    {
        this.key = key;
        this.value = value;
        this.value1 = value1;
    }

    @Override
    public String toString()
    {
        return key;
    }

    public String getKey()
    {
        return key;
    }

    public String getValue()
    {
        return value;
    }
    public String getValue1()
    {
        return value1;
    }
}
   public ManagerSubjectView() {
       try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Windows".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
        }
        initComponents();
        DefaultTableModel defaultModel = (DefaultTableModel) jTable1.getModel();
        final JPopupMenu popup = new JPopupMenu();
        JMenuItem menuItem = new JMenuItem("Thông tin chi tiết",
                new ImageIcon("images/newproject.png"));
        menuItem.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
               // System.out.println("Test");
            //    System.out.println("select `diem`.`diemP` as diemP, `diem`.`diemGK` as diemGK, `diem`.`diemCK` as diemCK,`monhoc`.`MSMH` as MSMH,`monhoc`.`tenmon` as tenmon,`lop`.`MALOP` as MALOP, `monhoc`.`hesoP` as hesoP, `monhoc`.`heSoGK` as heSoGK,`monhoc`.`heSoCK` as heSoCK,`user`.`ten` as GiangVien  from  monhoc,giangvien,user,lop,svinlop,diem where `svInLop`.`MSSV` = '"+Project1.User[10]+"' and `svInLop`.`MALOP` = `lop`.`MALOP` and `lop`.`MSGV` = `giangvien`.`MSGV` and `giangvien`.`ID_User` = `user`.`ID_User` and `monhoc`.`MSMH` = `lop`.`MSMH` and `lop`.`MALOP`='"+defaultModel.getValueAt(jTable1.getSelectedRow(), 2)+"' and `diem`.`MALOP`=`svInLop`.`MALOP`");
                ResultSet rs = sql.select("select `monhoc`.`MSMH` as MSMH,`monhoc`.`tenmon` as tenmon,`lop`.`MALOP` as MALOP, `monhoc`.`hesoP` as hesoP, `monhoc`.`heSoGK` as heSoGK,`monhoc`.`heSoCK` as heSoCK,`user`.`ten` as GiangVien  from  monhoc,giangvien,user,lop,svinlop where `svInLop`.`MSSV` = '"+Project1.User[10]+"' and `svInLop`.`MALOP` = `lop`.`MALOP` and `lop`.`MSGV` = `giangvien`.`MSGV` and `giangvien`.`ID_User` = `user`.`ID_User` and `monhoc`.`MSMH` = `lop`.`MSMH` and `lop`.`MALOP`='"+defaultModel.getValueAt(jTable1.getSelectedRow(), 2)+"'");
                try {
            if(rs.next())
            {
                        System.out.println("test");
            
                input_malop.setText(rs.getString("MALOP"));
                input_tenmon.setText(rs.getString("tenmon"));
                input_MSMH.setText(rs.getString("MSMH"));
                input_giangvien.setText(rs.getString("GiangVien"));

                input_heSoP.setText(rs.getString("heSoP"));
                input_heSoGK.setText(rs.getString("heSoGK"));
                input_heSoCK.setText(rs.getString("heSoCK"));
                Rank.setIcon(new javax.swing.ImageIcon(getClass().getResource("/project1/Views/images/none.png")));
                ResultSet rs1 = sql.select("select * from diem where `diem`.`MALOP`='"+rs.getString("MALOP")+"' and `diem`.`MSSV`= '"+Project1.User[10]+"'");
                System.out.println("select * from diem where `diem`.`MALOP`='"+rs.getString("MALOP")+"' and `diem`.`MSSV`= '"+Project1.User[10]+"'"); 
                if(rs1.next())
                {
                    input_diemP.setText(rs1.getString("diemP"));
                    input_diemGK.setText(rs1.getString("diemGK"));
                    input_diemCK.setText(rs1.getString("diemCK"));
                    float diem = Float.parseFloat(rs1.getString("diemP"))*Float.parseFloat(rs.getString("heSoP"))+Float.parseFloat(rs1.getString("diemGK"))*Float.parseFloat(rs.getString("heSoGK"))+Float.parseFloat(rs1.getString("diemCK"))*Float.parseFloat(rs.getString("heSoCK"));
                    if(diem<4f || Float.parseFloat(rs1.getString("diemGK"))<3f || Float.parseFloat(rs1.getString("diemCK"))<3f)
                        Rank.setIcon(new javax.swing.ImageIcon(getClass().getResource("/project1/Views/images/F.png"))); // NOI18N
                    else if(diem<5f)
                        Rank.setIcon(new javax.swing.ImageIcon(getClass().getResource("/project1/Views/images/D.png"))); // NOI18N
                    else if(diem<5.5f)
                        Rank.setIcon(new javax.swing.ImageIcon(getClass().getResource("/project1/Views/images/Dplus.png"))); // NOI18N
                    else if(diem<6.5f)
                        Rank.setIcon(new javax.swing.ImageIcon(getClass().getResource("/project1/Views/images/C.png"))); // NOI18N
                    else if(diem<7f)
                        Rank.setIcon(new javax.swing.ImageIcon(getClass().getResource("/project1/Views/images/Cplus.png"))); // NOI18N
                    else if(diem<8f)
                        Rank.setIcon(new javax.swing.ImageIcon(getClass().getResource("/project1/Views/images/B.png"))); // NOI18N
                    else if(diem<8.5f)
                        Rank.setIcon(new javax.swing.ImageIcon(getClass().getResource("/project1/Views/images/Bplus.png"))); // NOI18N
                    else if(diem<9.4f)
                        Rank.setIcon(new javax.swing.ImageIcon(getClass().getResource("/project1/Views/images/A.png"))); // NOI18N
                    else
                        Rank.setIcon(new javax.swing.ImageIcon(getClass().getResource("/project1/Views/images/Aplus.png"))); // NOI18N
                }
                
                
                           ShowInfoClass.setLocationRelativeTo(null);
                ShowInfoClass.show();
            }
        } catch (SQLException ex) {
            Logger.getLogger(AnnounceView.class.getName()).log(Level.SEVERE, null, ex);
                    System.out.println(ex.toString());
        }

            }
        });
        popup.add(menuItem);
        // New File menu item
        menuItem = new JMenuItem("Đăng ký Project",new ImageIcon("images/newfile.png"));
        menuItem.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                //DefaultTableModel defaultModel = (DefaultTableModel) jTable1.getModel();
                loadInfoRes(defaultModel.getValueAt(jTable1.getSelectedRow(), 2).toString());
                RegisterProject.setLocationRelativeTo(null);
                RegisterProject.show();
            }
        });
        popup.add(menuItem);
        jTable1.addMouseListener(new MouseAdapter() {
 
            @Override      
            public void mouseClicked(MouseEvent me)
            {
                if(SwingUtilities.isRightMouseButton(me) == true)
                {
                    int row = jTable1.rowAtPoint(me.getPoint());
                    jTable1.clearSelection();
                    jTable1.addRowSelectionInterval(row,row);
                    showPopup(me);
                }
            }
            private void showPopup(MouseEvent e) {
             //   if (e.isPopupTrigger()) {
                    popup.show(e.getComponent(),
                            e.getX(), e.getY());
               // }
            }
        });
       loadInfo();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        ShowInfoClass = new javax.swing.JDialog();
        jPanel4 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        input_malop = new javax.swing.JTextField();
        input_tenmon = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        input_MSMH = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        input_giangvien = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        input_diemP = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        input_heSoP = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        input_diemGK = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        input_heSoGK = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        input_diemCK = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        input_heSoCK = new javax.swing.JTextField();
        Rank = new javax.swing.JLabel();
        RegisterProject = new javax.swing.JDialog();
        jPanel5 = new javax.swing.JPanel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        ComMaLop = new javax.swing.JComboBox();
        jLabel16 = new javax.swing.JLabel();
        input_TenMon = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        Com_DeTai = new javax.swing.JComboBox();
        jScrollPane2 = new javax.swing.JScrollPane();
        Input_NoiDung = new javax.swing.JTextArea();
        btn_dangky = new javax.swing.JButton();
        txt_msg = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        btn_home = new javax.swing.JLabel();
        txt_home = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();

        ShowInfoClass.setTitle("Thông tin chi tiết");
        ShowInfoClass.setMinimumSize(new java.awt.Dimension(450, 500));
        ShowInfoClass.setResizable(false);

        jPanel4.setBackground(new java.awt.Color(255, 255, 255));
        jPanel4.setMaximumSize(new java.awt.Dimension(450, 400));
        jPanel4.setMinimumSize(new java.awt.Dimension(450, 400));
        jPanel4.setPreferredSize(new java.awt.Dimension(450, 400));

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel3.setText("Thông tin chi tiết");

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel4.setText("Mã lớp học:");

        jLabel5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel5.setText("Tên môn học:");

        input_malop.setEditable(false);
        input_malop.setBackground(new java.awt.Color(255, 255, 255));

        input_tenmon.setEditable(false);
        input_tenmon.setBackground(new java.awt.Color(255, 255, 255));

        jLabel6.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel6.setText("Mã số môn học:");

        input_MSMH.setEditable(false);
        input_MSMH.setBackground(new java.awt.Color(255, 255, 255));

        jLabel7.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel7.setText("Tên giảng viên:");

        input_giangvien.setEditable(false);
        input_giangvien.setBackground(new java.awt.Color(255, 255, 255));

        jLabel8.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel8.setText("Điểm Project:");

        input_diemP.setEditable(false);
        input_diemP.setBackground(new java.awt.Color(255, 255, 255));

        jLabel9.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel9.setText("Hệ Số Project:");

        input_heSoP.setEditable(false);
        input_heSoP.setBackground(new java.awt.Color(255, 255, 255));

        jLabel10.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel10.setText("Điểm Giữa Kỳ:");

        input_diemGK.setEditable(false);
        input_diemGK.setBackground(new java.awt.Color(255, 255, 255));

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel11.setText("Hệ số GK:");

        input_heSoGK.setEditable(false);
        input_heSoGK.setBackground(new java.awt.Color(255, 255, 255));

        jLabel12.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel12.setText("Điểm Cuối Kỳ:");

        input_diemCK.setEditable(false);
        input_diemCK.setBackground(new java.awt.Color(255, 255, 255));

        jLabel13.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel13.setText("Hệ số CK:");

        input_heSoCK.setEditable(false);
        input_heSoCK.setBackground(new java.awt.Color(255, 255, 255));

        Rank.setIcon(new javax.swing.ImageIcon(getClass().getResource("/project1/Views/images/none.png"))); // NOI18N

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel3)
                .addGap(141, 141, 141))
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel7)
                            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel4Layout.createSequentialGroup()
                                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel4)
                                        .addComponent(jLabel5))
                                    .addGap(18, 18, 18)
                                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(input_malop)
                                        .addComponent(input_tenmon, javax.swing.GroupLayout.DEFAULT_SIZE, 307, Short.MAX_VALUE)))
                                .addGroup(jPanel4Layout.createSequentialGroup()
                                    .addComponent(jLabel6)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(input_MSMH, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addComponent(input_giangvien, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 305, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(0, 5, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel4Layout.createSequentialGroup()
                                .addComponent(jLabel12)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(input_diemCK))
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(jLabel10)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(input_diemGK, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(jLabel8)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(input_diemP, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel9)
                            .addComponent(jLabel11)
                            .addComponent(jLabel13))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(input_heSoP)
                            .addComponent(input_heSoGK)
                            .addComponent(input_heSoCK, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE))))
                .addContainerGap(15, Short.MAX_VALUE))
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(171, 171, 171)
                .addComponent(Rank)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel3)
                .addGap(32, 32, 32)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(input_malop, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(input_tenmon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(input_MSMH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(input_giangvien, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(input_diemP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel9)
                    .addComponent(input_heSoP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(input_diemGK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel11)
                    .addComponent(input_heSoGK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12)
                    .addComponent(input_diemCK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel13)
                    .addComponent(input_heSoCK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(37, 37, 37)
                .addComponent(Rank)
                .addContainerGap(36, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout ShowInfoClassLayout = new javax.swing.GroupLayout(ShowInfoClass.getContentPane());
        ShowInfoClass.getContentPane().setLayout(ShowInfoClassLayout);
        ShowInfoClassLayout.setHorizontalGroup(
            ShowInfoClassLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        ShowInfoClassLayout.setVerticalGroup(
            ShowInfoClassLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        RegisterProject.setMaximumSize(new java.awt.Dimension(670, 430));
        RegisterProject.setMinimumSize(new java.awt.Dimension(670, 430));
        RegisterProject.setPreferredSize(new java.awt.Dimension(670, 430));
        RegisterProject.setResizable(false);

        jPanel5.setBackground(new java.awt.Color(255, 255, 255));
        jPanel5.setMaximumSize(new java.awt.Dimension(670, 430));
        jPanel5.setMinimumSize(new java.awt.Dimension(670, 430));
        jPanel5.setPreferredSize(new java.awt.Dimension(670, 430));

        jLabel14.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel14.setText("Đăng ký Bài Tập Lớp");

        jLabel15.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel15.setText("Mã lớp học:");

        ComMaLop.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        ComMaLop.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                ComMaLopItemStateChanged(evt);
            }
        });
        ComMaLop.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                ComMaLopPropertyChange(evt);
            }
        });

        jLabel16.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel16.setText("Tên môn học:");

        input_TenMon.setEditable(false);
        input_TenMon.setBackground(new java.awt.Color(255, 255, 255));
        input_TenMon.setText("jTextField1");

        jLabel17.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel17.setText("Để tài đăng ký:");

        Com_DeTai.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tự đề xuất" }));
        Com_DeTai.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                ChangedDeTai(evt);
            }
        });

        Input_NoiDung.setEditable(false);
        Input_NoiDung.setColumns(10);
        Input_NoiDung.setRows(5);
        jScrollPane2.setViewportView(Input_NoiDung);

        btn_dangky.setText("Đăng Ký");
        btn_dangky.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_dangkyActionPerformed(evt);
            }
        });

        txt_msg.setForeground(new java.awt.Color(255, 51, 51));
        txt_msg.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(228, 228, 228)
                        .addComponent(jLabel14))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(30, 30, 30)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel17)
                            .addComponent(Com_DeTai, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 601, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel15)
                                    .addComponent(jLabel16))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(input_TenMon, javax.swing.GroupLayout.DEFAULT_SIZE, 481, Short.MAX_VALUE)
                                    .addComponent(ComMaLop, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(94, 94, 94)
                        .addComponent(txt_msg, javax.swing.GroupLayout.PREFERRED_SIZE, 475, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(297, 297, 297)
                        .addComponent(btn_dangky)))
                .addContainerGap(39, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addComponent(jLabel14)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel15)
                    .addComponent(ComMaLop, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(input_TenMon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel17)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(Com_DeTai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26)
                .addComponent(btn_dangky)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txt_msg, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(31, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout RegisterProjectLayout = new javax.swing.GroupLayout(RegisterProject.getContentPane());
        RegisterProject.getContentPane().setLayout(RegisterProjectLayout);
        RegisterProjectLayout.setHorizontalGroup(
            RegisterProjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        RegisterProjectLayout.setVerticalGroup(
            RegisterProjectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        setMaximumSize(new java.awt.Dimension(1024, 700));
        setMinimumSize(new java.awt.Dimension(1024, 700));
        setPreferredSize(new java.awt.Dimension(1024, 700));

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setMaximumSize(new java.awt.Dimension(1024, 700));
        jPanel1.setMinimumSize(new java.awt.Dimension(1024, 700));
        jPanel1.setPreferredSize(new java.awt.Dimension(1024, 700));

        jPanel2.setBackground(new java.awt.Color(250, 249, 249));
        jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel2.setMaximumSize(new java.awt.Dimension(1024, 124));
        jPanel2.setMinimumSize(new java.awt.Dimension(1024, 124));

        btn_home.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        btn_home.setIcon(new javax.swing.ImageIcon(getClass().getResource("/project1/Views/images/home.png"))); // NOI18N
        btn_home.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        btn_home.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btn_home.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        btn_home.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btn_homeMouseClicked(evt);
            }
        });

        txt_home.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        txt_home.setText("Thông tin chung");

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/project1/Views/images/find.png"))); // NOI18N

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel2.setText("Thông tin môn học");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(46, 46, 46)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(btn_home)
                    .addComponent(txt_home))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(55, 55, 55)
                        .addComponent(jLabel1))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(45, 45, 45)
                        .addComponent(jLabel2)))
                .addContainerGap(759, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btn_home)
                    .addComponent(jLabel1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txt_home)
                    .addComponent(jLabel2))
                .addContainerGap())
        );

        jPanel3.setBackground(new java.awt.Color(255, 255, 255));
        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Danh sách môn học"));
        jPanel3.setMaximumSize(new java.awt.Dimension(955, 514));
        jPanel3.setMinimumSize(new java.awt.Dimension(955, 514));

        jTable1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null}
            },
            new String [] {
                "Mã môn học", "Tên môn học", "Mã lớp học", "Trọng số (Project/GK/CK)", "Giảng Viên"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTable1.setRowHeight(24);
        jTable1.setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
        jTable1.getTableHeader().setReorderingAllowed(false);
        jScrollPane1.setViewportView(jTable1);
        if (jTable1.getColumnModel().getColumnCount() > 0) {
            jTable1.getColumnModel().getColumn(0).setResizable(false);
        }

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 923, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 469, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents
    void loadInfo()
    {
        DefaultTableModel defaultModel = (DefaultTableModel) jTable1.getModel(); 
        System.out.println(jTable1.getRowCount());
        int num=jTable1.getRowCount();
        for(int i =0;i<num;i++)
        {
            defaultModel.removeRow(0);
        }
       // System.out.println("select `monhoc`.`MSMH` as MSMH,`monhoc`.`tenmon` as tenmon,`lop`.`MALOP` as MALOP, `monhoc`.`hesoP` as hesoP, `monhoc`.`heSoGK` as heSoGK,`monhoc`.`heSoCK` as heSoCK,`user`.`ten` as GiangVien  from  monhoc,giangvien,user,lop,svinlop where `svInLop`.`MSSV` = '"+Project1.User[10]+"' and `svInLop`.`MALOP` = `lop`.`MALOP` and `lop`.`MSGV` = `giangvien`.`MSGV` and `giangvien`.`ID_User` = `user`.`ID_User` and `monhoc`.`MSMH` = `lop`.`MSMH` ");
        ResultSet rs = sql.select("select `monhoc`.`MSMH` as MSMH,`monhoc`.`tenmon` as tenmon,`lop`.`MALOP` as MALOP, `monhoc`.`hesoP` as hesoP, `monhoc`.`heSoGK` as heSoGK,`monhoc`.`heSoCK` as heSoCK,`user`.`ten` as GiangVien  from  monhoc,giangvien,user,lop,svinlop where `svInLop`.`MSSV` = '"+Project1.User[10]+"' and `svInLop`.`MALOP` = `lop`.`MALOP` and `lop`.`MSGV` = `giangvien`.`MSGV` and `giangvien`.`ID_User` = `user`.`ID_User` and `monhoc`.`MSMH` = `lop`.`MSMH` ");
    try {
            while(rs.next())
            {
               defaultModel.insertRow(0, new Object [] {rs.getString("MSMH"),rs.getString("tenmon"),rs.getString("MALOP"), rs.getString("hesoP")+"/"+ rs.getString("heSoGK")+"/"+ rs.getString("heSoCK"),rs.getString("GiangVien")});
            }
        } catch (SQLException ex) {
            Logger.getLogger(AnnounceView.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    private void btn_homeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btn_homeMouseClicked
        // TODO add your handling code here:
        project1.Frame.setFrame(project1.Frame.homeView);
    }//GEN-LAST:event_btn_homeMouseClicked

    private void ChangedDeTai(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_ChangedDeTai
        // TODO add your handling code here:
        
        ComboItem detai = (ComboItem) Com_DeTai.getSelectedItem();
        if(detai!=null)
        {
            Input_NoiDung.setText(detai.getValue());
        }
    }//GEN-LAST:event_ChangedDeTai

    private void btn_dangkyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_dangkyActionPerformed
        // TODO add your handling code here:
        try {
        ComboItem lop = (ComboItem) ComMaLop.getSelectedItem();
        ComboItem detai = (ComboItem) Com_DeTai.getSelectedItem();
        
        int nums = sql.numrows("select `svBTL`.`MSSV` as MSSV from svBTL,btlInLop where MSSV = '"+Project1.User[10]+"' and `svBTL`.`MSBTL` = `btlInLop`.`MSBTL` and `btlInLop`.`MALOP`='"+lop.getValue()+"'");
        if(nums==0)
        {
            if(sql.query("insert into svBTL values('"+Project1.User[10]+"','"+detai.getValue1()+"')"))
                txt_msg.setText("Đăng ký thành công");
            else
                txt_msg.setText("Có lỗi xảy ra");
        }
        else
        {
            txt_msg.setText("Bạn đã đăng ký đề tài, không thể đăng ký lại.");
        }    
        } catch (Exception e) {
        }
        
    }//GEN-LAST:event_btn_dangkyActionPerformed
    String selectedLop="";
    private void ComMaLopItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_ComMaLopItemStateChanged
        // TODO add your handling code here:
        
    }//GEN-LAST:event_ComMaLopItemStateChanged

    private void ComMaLopPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_ComMaLopPropertyChange
        // TODO add your handling code here:
        ComboItem lop = (ComboItem) ComMaLop.getSelectedItem();
//        System.out.println(lop.getValue());
        if(lop!=null)
            if(!selectedLop.equals(lop.getValue1()))
            loadInfoRes(lop.getValue1());
    }//GEN-LAST:event_ComMaLopPropertyChange
    void loadInfoRes(String malop)
    {
        ComMaLop.removeAllItems();
        ResultSet rs = sql.select("select MALOP from svInLop where MSSV='"+Project1.User[10]+"'");
        try {
            while(rs.next())
            {
               
                    ComMaLop.addItem(new ComboItem(rs.getString("MALOP"),rs.getString("MALOP"),rs.getString("MALOP")));
                     if(rs.getString("MALOP").equals(malop))
                         ComMaLop.setSelectedIndex(ComMaLop.getItemCount()-1);
            }
        } catch (SQLException ex) {
            Logger.getLogger(ManagerSubjectView.class.getName()).log(Level.SEVERE, null, ex);
        }
        ComboItem mon = (ComboItem)ComMaLop.getSelectedItem();
        rs = sql.select("select `monhoc`.`tenmon` as tenmon from monhoc,lop where `lop`.`MSMH` = `monhoc`.`MSMH` and `lop`.`MALOP` ='"+mon.getValue()+"'");
        try {
            if(rs.next())
                input_TenMon.setText(rs.getString("tenmon"));
        } catch (SQLException ex) {
            Logger.getLogger(ManagerSubjectView.class.getName()).log(Level.SEVERE, null, ex);
        }
        LoadProject(mon.getValue());
        selectedLop=mon.getValue();
    }
    void LoadProject(String maLop)
    {
        Com_DeTai.removeAllItems();
        ResultSet rs = sql.select("select `baitaplon`.`MSBTL` as MSBTL, `baitaplon`.`tieude` as tieude, `baitaplon`.`noidung` as noidung from baitaplon,btlInLop where `baitaplon`.`MSBTL` = `btlInLop`.`MSBTL` and `btlInLop`.`MALOP` = '"+maLop+"'");
        try {
            while(rs.next())
            {
                Com_DeTai.addItem(new ComboItem(rs.getString("tieude"),rs.getString("noidung"),rs.getString("MSBTL")));
            }
        } catch (SQLException ex) {
            Logger.getLogger(ManagerSubjectView.class.getName()).log(Level.SEVERE, null, ex);
        }
        Input_NoiDung.setText("");
        try
        {
        ComboItem detai = (ComboItem) Com_DeTai.getSelectedItem();
        Input_NoiDung.setText(detai.getValue());
        }
        catch(Exception ex)
        {
            
        }
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JComboBox ComMaLop;
    private javax.swing.JComboBox Com_DeTai;
    private javax.swing.JTextArea Input_NoiDung;
    private javax.swing.JLabel Rank;
    private javax.swing.JDialog RegisterProject;
    private javax.swing.JDialog ShowInfoClass;
    private javax.swing.JButton btn_dangky;
    private javax.swing.JLabel btn_home;
    private javax.swing.JTextField input_MSMH;
    private javax.swing.JTextField input_TenMon;
    private javax.swing.JTextField input_diemCK;
    private javax.swing.JTextField input_diemGK;
    private javax.swing.JTextField input_diemP;
    private javax.swing.JTextField input_giangvien;
    private javax.swing.JTextField input_heSoCK;
    private javax.swing.JTextField input_heSoGK;
    private javax.swing.JTextField input_heSoP;
    private javax.swing.JTextField input_malop;
    private javax.swing.JTextField input_tenmon;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTable jTable1;
    private javax.swing.JLabel txt_home;
    private javax.swing.JLabel txt_msg;
    // End of variables declaration//GEN-END:variables
}
